﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace MyRaceGame.GameLogic.GameStates
{
    public class MenuItem
    {
        public MenuItem(string name, Texture2D texture, Texture2D selectedTexture, Vector2 position)
        {
            this.name = name;
            this.texture = texture;
            this.selectedTexture = selectedTexture;
            this.position = position;
        }

        public Rectangle Bounds
        {
            get { return new Rectangle((int)position.X, (int)position.Y, texture.Width, texture.Height); }
        }

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        public Texture2D Texture
        {
            get { return texture; }
            set { texture = value; }
        }

        public Texture2D SelectedTexture
        {
            get { return selectedTexture; }
            set { selectedTexture = value; }
        }

        public Vector2 Position
        {
            get { return position; }
            set { position = value; }
        }

        public bool Selected
        {
            get { return selected; }
            set { selected = value; }
        }

        string name;
        Texture2D texture, selectedTexture;
        Vector2 position;
        bool selected = false;
    }
}
